/*$(function(){
	var errorShow = $(".no_input");
// 点击登陆事件
	$("#login").click(function(){
		errorShow.hide();
		if($("#username_l").val().length == 0){
			errorShow.show();
			errorShow.text("请输入用户名/手机号");
		}else if($("#password_l").val().length == 0){
			errorShow.show();
			errorShow.text("请输入密码");
		}else{
			$("#loginform").submit();
			var username = $("#username_l").val();
			var password = $("#password_l").val();
			var loginform = $("#loginform");
			loginform.action = "member_login.action?username=" + username + "&password=" + password;
			loginform.method = "post";
			loginform.submit();
		}
	});
	
	
	
	
});*/

/*$("#loginform").form({
	url:"member_login.action",
	onSubmit: function() {},
	success: function(data) {
		var data1 =$.parseJSON(data);
		//alert(data);
		if(data1.result=="SUCCESS"){
			location.href = "index.action";
		} else {
			errorShow.show();
			errorShow.text(data.message);
		}
	},
});*/
function check(){
	var errorShow = $(".no_input");
	var flag=true;
	if($("#username_l").val().length == 0){
		flag=false;
		errorShow.show();
		errorShow.text("请输入用户名/手机号");
	}else if($("#password_l").val().length == 0){
		flag=false;
		errorShow.show();
		errorShow.text("请输入密码");
	}
	return flag;
}
